bin/admin: Change init-fs to stop loading a sysroot to init one
authorColin Walters <walters@verbum.org>
Fri, 1 Sep 2017 18:57:53 +0000 (14:57 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 1 Sep 2017 21:34:33 +0000 (21:34 +0000)
commit517dd9c9648f6d1508343429086ac5a471bea7ec
tree199dfa66ba7df7de5b03a74877ccc0e091c74d71
parentaef5a7331e112f4d8c3ce7ccc4abcc4b6c2a2c76
bin/admin: Change init-fs to stop loading a sysroot to init one

This is exactly analogous to the `ostree init` case where
we have `OSTREE_BUILTIN_FLAG_NO_REPO` to avoid trying to load
a repo when we're creating one.

Let's avoid the pointless sysroot for `init-fs`; among other
things this will then let us do `ostree_sysroot_load()` inside
the argument parsing, and drop it from every other user.

Closes: #1123
Approved by: jlebon
src/ostree/ot-admin-builtin-init-fs.c
src/ostree/ot-main.c
src/ostree/ot-main.h